package com.ebupt.migu.music.util.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @program: workorder
 * @description: 自定义异常类
 * @author: zhanggk
 * @create: 2018-12-28
 **/
@Getter
@Setter
public class MyException extends RuntimeException {
    /** 异常编码 */
    private StatusEnum statusEnum;

    /**
     * 异常信息
     * @param message
     */
    public MyException(StatusEnum statusEnum, String message) {
        super(message);
        this.statusEnum = statusEnum;
    }
}